import Home from './Home';
import Feedback from './Feedback';
import Source,{Word,Image} from './Source';
import Article from './Article';
import Comment from './Comment';
import login from './Login';


const routes = [
    {
        path:'/',
        exact:true,
        component:Home,
        pri:true,
    },
    {
        path:'/source',
        component:Source,
        pri:true,
        routes:[
            {
                path:'/doc/word',
                component:Word,
            },
            {
                path:'/doc/image',
                component:Image,
            }
        ]
    },
    {
        path:'/comment',
        component:Comment,
        pri:true,

    },
    {
        path:'/feedback',
        component:Feedback,
        pri:true,

    },
    {
        path:'/article',
        component:Article,
        pri:true,

    },
    {
        path:'/login',
        component:login
    },
]

export default routes;